Both films are similar in a way where mentally disordered leads both takes a crucial part in solving the case.
An unexpected friendship and strong bond between 2 leads. Also the main plot of the films happened inside the prison and things gets interesting as the 2 leads meet. Explosion of emotions and climax of both movies also happened when one of the leads was out of the prison.