personal solution of checkio.org problems