Anyone??

Can someone atleast propose a coding idea for such a situation?