Solutions for various problems you could ask in a programming interview