SingleKey interview question

basic DSA check leetcode with runtime