even those sorting algos were created by computer scientist academic guys, doctors, profs :) Yeah we know it is really bad to use nested loops but to figure out from scratch it is really hard. If they are looking for genious guys then they can make IQ tests rather than making one month interview camp.