Out of three people (Lavesh, Mayank and Manoj), one of them is a king, one a bureaucrat, and one a thief.
The king always tells the truth, the bureaucrat always lies, and the thief can either lie or tell the truth.
Lavesh says: 'Manoj is a bureaucrat.'
Mayank says: 'Lavesh is a king.'
Manoj says: 'I am the thief.'
Who is the king, who the bureaucrat, and who the thief?
Lavesh is a King
Mayank is a Spy
Manoj is a Bureaucrat
Mayank is not the king, since if he is, then Lavesh would also be the king.
Manoj is not the king, since his statement would then be a lie.
Therefore Lavesh is the king. Hence Manoj is the bureaucrat, and Mayank is the thief.