You can use index
and break
function:
{foreach from=$entries key=i item=topic name=foo}
{if $smarty.foreach.foo.index == 10}
{break}
{/if}
{if $topic.topic_style == question}
-
{$topic.title}
{/if}
{/foreach}
Break function is described here:
Break in Smarty's / Dwoo's foreach