Solution for Bodacious Udacity Problem