my code for solve CodeIQ's questions.