solutions to some of the popular coding problems