ValueLabs interview question

One logic question on our thinking ability