Alex Lungu's submission of Andrew and the Strings | CodeChef