• any other approach which will resolve this issue by using only one function or without using any functions?

    karthik