Python Type Hint Optional Parameters Javascript Interview