Andrey Kim's submission of Entangled Strings | CodeChef