Simple implementations of coding problems