it is giving me 0 even if my key is present or not in the matrix.
@anyamaurya hey I have corrected your code ,please see to it: