implement problem, consider I/O, easy