algorithms These set of codes were written while undertaking a course on Algorithms by Coursera Quadratic time is slow