Beginning of test of Amit sir's logic.
1. Shifted Image Bean iteration portion below CharBean portion. Its purpose is now to cater to images which are leftover from text.
2. Added a 'placed' boolean to ImageBean class. This will be set to true whenever the corresponding image is placed.
Begin test of Amit sir's logic.
1. Shifted current ImageBean iteration portion below CharBean iteration. It will now cater to those images which do not appear between text.
2. Added a 'placed' boolean to ImageBean, which will be marked true when corresponding image is placed. We cannot remove the images from the LHMap during iteration (fail-fast enumeration).