this is my implemented logic but it is not working, can anyone suggest a better logic or alternative way to do this task please.
this is my implemented logic but it is not working, can anyone suggest a better logic or alternative way to do this task please.