Smallest Missing Positive Integer — Easy JavaScript/TypeScript Practice Problem