chandan's submission of Subanagrams | CodeChef