Solutions to certain problems I solved on codeeval.com