Can anyone share code / approach for this problem

this problem is from Last night Air Bnb coding challenge, but now the challenge is ended.

Looks like some ongoing hiring contest…

1 Like

Its from last night Air bnb coding challenge, but now its ended and i was unable to solve this problem So i asked it here

How to keep an eye on ongoing hiring contests ? Is there a site for it? Can someone please tell.