Rundoo interview question

Programming prompt similar to two sum