Python Type Hint Optional Parameter Javascript Interview