TCS hackathon problem