My solution to Checkio problems