IBM interview question

Find a triplet given sum