https://ruclips.ru/en/watch/3886JHbrTv0/alternating-characters-hackerrank-solution