Code for Microsoft coding challenge. Deez grad students will destroy me