Added testcases

Example input from stdin and expected output from stdout for each case.