Solutions for coding and algorithm problems