Update codingbat.rst

Place all example function signatures and outputs into code blocks for uniformity.