AnyVision interview question

How to implement: Func(6)(4) in JS