ShoeSize.Me interview question

How would you do this?