Algorithms and Tech Interview exercises