problem statement and solution to codes from HackeRrank