My Solutions to cracking the code interview