Improved result to 9878!

Tried to take cues from Weistroff’s solution, and improve the solution!