Roblox interview question

LC using 2 pointer and array partitioning and a OOP question