Answer:
While I was eating my lunch, a squirrel hopped up on the railing and chattered at me
Explanation:
The best revision of the original sentence would be option A. This is because it leaves no room for ambiguity or confusion unlike the other options.
The other options give the impression that the squirrel was the one eating the lunch, instead of the narrator.