No, it is an original story, though it draws inspiration from classic comedy of errors films like The Wrong Man and earlier Tamil train comedies.
Even from a legal source, you can improve perceived quality: