Answers

2014-12-12T15:23:47+05:30
Easy way:use system.out.println
otherwise use nested loop
1 3 1
2014-12-13T21:55:18+05:30
Use nested loop................
1 3 1