K-Element Target Sum - Coding problem | OneNoughtOne