I had come across this question in one of the coding platforms. I did not get the logic behind this question. Not many examples have been provided as such. Can someone give