Planview interview question

Write small example program and tests as well