Could you please check what is wrong

  1. Can m and n be different?
  2. https://onlinegdb.com/bXRtMVJWT