Andrey Kim's submission of The Number Of Solutions | CodeChef