Scale interview question

Code using Google Maps API