Done with day2 assignments

Hint: In the <b>pop_from_array</b>, logic to be used is:
1) Iterate array upto array length. (Don't use each for iteration here. It will not give proper results).
2) On each iteration do puts arr.pop