If you don't want to write smarty plugin, you can do this too:
{foreach from=$entries key=i item=topic name=foo}
{if $smarty.foreach.foo.index == 10}
{php}break;{/php}
{/if}
{if $topic.topic_style == question}
-
{$topic.title}
{/if}
{/foreach}