The Pursuit of Happyness (2006) is a based-on-fact drama about a marginally employed single father stubbornly determined to get an internship at a stock brokerage, starring real life father and son Will Smith and Jaden Smith.
In a brief but critical scene, the Will Smith character impresses a stockbroker by solving the Rubik's Cube in about two minutes. (The actor was actually solving the cube, having been coached by an expert.[1])